package com.zoomlion.core.util;

/**  
* Filename		:	ViePage.java  
* Description	:   
* Copyright		:   Copyright (c)2010-2011  
* Company		:   
* @author		:   yanglianbo 
* @version		:   1.0  
* Create at		:   Jun 12, 2011 2:25:47 PM  
*  
* Modification History:  
* Date			Author      	Version    	Description  
* ------------------------------------------------------------------  
* Jun 12, 2011     	yanglianbo    	1.0        	1.0 Version  
*/   

import java.io.Serializable;
import java.util.List;

/**
 * @author 		:	yanglian
 * Description	:
 * Create at 	:  	Jun 12, 2011 2:25:47 PM
 */
public class ViewPage implements Serializable{


	private static final long serialVersionUID = 1L;

	/**
	 * 每页大小
	 */
	private int numPerPage = 20;

	/**
	 * 起始号
	 */
	private int start;

	/**
	 * 当前页号
	 */
	private int pageNum=1;

	/**
	 * 总数量
	 */
	private int totalSize;

	/**
	 * 总页数
	 */
	private int totalPage;

	/**
	 * Title列表
	 */
	private List titleList;

	/**
	 * 当前页数据列表
	 */
	private List pageDataList;

	/**
	 * 接口查询多个列表分页标志
	 */
	private int interFlag;
	
	
	private String orderField;

	private String status;
	
	public String getOrderField() {
		return orderField;
	}

	public void setOrderField(String orderField) {
		this.orderField = orderField;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * 每页大小
	 * 
	 * @return the numPerPage
	 */
	public int getNumPerPage() {
		return numPerPage;
	}

	/**
	 * 每页大小
	 * 
	 * @param numPerPage
	 *            the numPerPage to set
	 */
	public void setNumPerPage(int numPerPage) {
		this.numPerPage = numPerPage;
	}

	/**
	 * 起始号
	 * 
	 * @return the start
	 */
	public int getStart() {
		return start;
	}

	/**
	 * 起始号
	 * 
	 * @param start
	 *            the start to set
	 */
	public void setStart(int start) {
		this.start = start;
	}

	/**
	 * 总数量
	 * 
	 * @return the totalSize
	 */
	public int getTotalSize() {
		return totalSize;
	}

	/**
	 * 总数量
	 * 
	 * @param totalSize
	 *            the totalSize to set
	 */
	public void setTotalSize(int totalSize) {
		this.totalSize = totalSize;
	}

	/**
	 * 总页数
	 * 
	 * @return the totalPage
	 */
	public int getTotalPage() {
		return totalPage;
	}

	/**
	 * 总页数
	 * 
	 * @param totalPage
	 *            the totalPage to set
	 */
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	/**
	 * 当前页号
	 * 
	 * @return the pageNum
	 */
	public int getPageNum() {
		return pageNum;
	}

	/**
	 * 当前页号
	 * 
	 * @param pageNum
	 *            the pageNum to set
	 */
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	/**
	 * Title列表
	 * 
	 * @return the titleList
	 */
	public List getTitleList() {
		return titleList;
	}

	/**
	 * Title列表
	 * 
	 * @param titleList
	 *            the titleList to set
	 */
	public void setTitleList(List titleList) {
		this.titleList = titleList;
	}

	/**
	 * 当前页数据列表
	 * 
	 * @return the pageDataList
	 */
	public List getPageDataList() {
		return pageDataList;
	}

	/**
	 * 当前页数据列表
	 * 
	 * @param pageDataList
	 *            the pageDataList to set
	 */
	public void setPageDataList(List pageDataList) {
		this.pageDataList = pageDataList;
	}

	public int getInterFlag() {
		return interFlag;
	}

	public void setInterFlag(int interFlag) {
		this.interFlag = interFlag;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("{pageNum=").append(pageNum).append(", ");
		sb.append("start=").append(start).append(", ");
		sb.append("numPerPage=").append(numPerPage).append(", ");
		sb.append("totalSize=").append(totalSize).append(", ");
		sb.append("totalPage=").append(totalPage).append(",");
		sb.append("titleList=").append(titleList).append(", ");
		sb.append("pageDataList=").append(pageDataList).append("}");
		return sb.toString();
	}


}
